package club.emergency.wechat.persistence.question_collection;

import club.emergency.wechat.model.question_collection.QuestionCollection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author jifujun
 * @since 2019-02-21
 */
public interface QuestionCollectionMapper extends BaseMapper<QuestionCollection> {

    /**
     * 根据人员id和试题id物理删除试题收藏记录
     *
     * @param staffId    人员id
     * @param questionId 试题id
     */
    @Delete("delete from question_collection where staff_id = #{staffId} and question_id = #{questionId}")
    void remove(@Param("staffId") Long staffId, @Param("questionId") Long questionId);
}
